package cn.jtcoding.item.mapper;


import cn.jtcoding.item.pojo.dataobject.ItemsDO;
import cn.jtcoding.item.pojo.vo.ItemSearchVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface ItemsMapper {
    ItemsDO getItemById(String itemId);

    List<ItemSearchVO> searchItems(@Param("keyword") String keyword, @Param("sort") String sort);
}